package bandidong.dao;

import bandidong.model.Category;
import java.util.List;

public interface CategoryDAO {
    public List<Category> getAllCategories();
    public Category getCategoryById(int categoryId);
    public List<Category> getAllCategories(int page, int pageSize);
    public String addCategory(Category category);
    public String updateCategory(Category category);
    public String deleteCategory(Category category);
    public Category getCategoryByName(String categoryName);
    public boolean checkExists(String categoryName, int categoryId);
}
